{{ include('doctype.twig') }}
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Cabinet Manager - Gestion des cabinets</title>
	{{ include('common-meta.twig') }}
	{{ include('common-css.twig') }}
	<!-- dashboard -->
	<link rel="stylesheet" href="bootstrap/css/colorpicker.css" />
    <link rel="stylesheet" href="bootstrap/css/datepicker.css" />
	<link rel="stylesheet" href="bootstrap/css/uniform.css" />
	<link rel="stylesheet" href="bootstrap/css/select2.css" />		
	<link rel="stylesheet" href="bootstrap/css/unicorn.main.css" />
	<link rel="stylesheet" href="bootstrap/css/unicorn.grey.css" class="skin-color" />
</head>
	<body>
		{{ include('topbar.twig') }}
		{{ include('searchbox.twig') }}
		{{ include('navbar.twig') }}
		{{ include('sidebar.twig') }}
		<!-- {{ include('style-switcher.twig') }} -->
		
		<div id="content">
			
			{{ include('includes/content-header.twig') }}
			{{ include('includes/breadcrumb.twig') }}

		<div class="container-fluid">

			<div class="row-fluid">
				<div class="span12">
					<div class="widget-box">
						<div class="widget-title">
							<span class="icon"> <i class="icon-align-justify"></i>
							</span>
							<h5>{{ tableName }}</h5>
						</div>
						<div class="widget-content nopadding">
							<form action="#" method="post" class="form-horizontal">
                                <input type="hidden" name="action" value="{{ action }}" />
								{% for input in inputs %}
									{% if input.primary == true %}
									<div class="control-group">
										<label class="control-label">{{ input.label }}</label>
										<div class="controls">
											<input type="hidden" name="{{ input.fieldName }}" 
                                            {% if action == 'update' %}
                                                value="{{ input.value }}" 
                                            {% else %}
                                                value="{{ next_AI }}" 
                                            {% endif %}
                                            />
											<strong>
                                            {% if action == 'update' %}
                                                {{ input.value }}
                                            {% else %}
                                                {{ next_AI }}
                                            {% endif %}
                                            </strong>
										</div>
									</div>
									{% else %}
									<div class="control-group">
										<label class="control-label">{{ input.label }}</label>
										<div class="controls">
											<input type="{{ input.type }}" name="{{ input.fieldName }}" 
                                            {% if action == 'update' %}
                                                value="{{ input.value }}" 
                                            {% endif %}
                                            />
										</div>
									</div>
									{% endif %}
								{% endfor %}
                                <div class="form-actions">
                                    <button type="submit" class="btn btn-primary" name="submit" value="submit">Enregister</button>
                                </div>
							</form>
						</div>
					</div>
				</div>
			</div>
			


		</div>
	</div>
		
{{ include('footer.twig') }}